.PHONY: build
build: clean
	go build -gcflags=all="-N -l" -v -o ./laohuo.dev .

.PHONY: run
run: build
	exec ./laohuo.dev > /tmp/laohuo.log 2>&1 &

.PHONY: clean
clean:
	ps -ef | grep laohuo.dev | grep -v grep | awk -F" " '{print $$2}' |xargs kill -9 && \
	rm -f laohuo.dev
